package com.hulk.dryad.admin.api.base;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author hulk
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Accessors(chain = true)
public  class Req extends Base {

	private static final long serialVersionUID = 1L;

	@NotBlank(message="请求时间不可为空;")
	@Length(min=14,max=14,message="请求时间长度不正确,长度为14位;")
	@Pattern(regexp = "^[0-9]+$" ,message="请求时间格式不正确;")
	@ApiModelProperty(value = "请求时间",required = true)
	private String reqTime;

}